<template>
    <div class="main-page">
        <div class="div-title">
            <div class="div-label-title">
                <div>
                    <img  src="~src/assets/img/M_cloudy.png" />
                    <!-- <el-button @click="testUrl" type="danger">测试用例</el-button> -->
                </div>
                <div>
                    <label>&nbsp;&nbsp;{{nameLabel}}&nbsp;&nbsp;你好！欢迎登录公共账号管理系统</label>
                </div>
            </div>
            <div class="div-date-title">
                <div>
                    <img  src="~src/assets/img/M_time.png" />
                </div>
                <div>
                    <label>&nbsp;&nbsp;{{timeLabel}}</label>
                </div>
            </div>
        </div>
       <img  class="img-bg" src="~src/assets/img/M_bg.jpg" />
        <img  class="img-logo" src="~src/assets/img/main_logo.png" />
       <div class="container">
            <div class="nr">
                <div @click="audit" class="top-block">
                    <svg-icon class="svg-audit" icon-class="jcsh" class-name="jcsh" />
                    <label>审核管理</label>
                    <div v-if="auditNumber" class="div-number">
                        {{auditNumber}}
                    </div>
                </div>
            </div>
       </div>
    </div>
 </template>

<script lang="ts" src="./main_page.ts"></script>

<style scoped>
.div-number {
  margin-top: -25px;
  margin-right: -30px;
  width: 40px;
  height: 20px;
  border: 1px solid #ff0000;
  border-radius: 10px;
  background-color: #ff0000;
  font-size: 14px;
  color: #ffffff;
}

.main-page {
  position: relative;
  border: 1 solid #dddddd;
}

.div-label-title {
  color: #317eac;
  text-align: left;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.div-date-title {
  color: #317eac;
  text-align: left;
  display: flex;
  align-items: center;
}

.div-title {
  border: none;
  padding-top: 5px;
  border-bottom: 1px solid #dedede;
  border-radius: 3px 3px 0 0;
  height: 35px;
  min-height: 35px !important;
  margin-bottom: 0;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
}

.img-bg {
  position: absolute;
  left: 0;
  width: 100%;
}

.img-logo {
  position: absolute;
  width: 554px;
  top: 200%;
  left: 25%;
}

.container {
  width: 90%;
  margin: 0 auto;
  position: relative;
}

.top-block {
  border-radius: 2px;
  font-size: 19px;
  text-align: center;
  padding: 5px;
  margin-bottom: 10px;
  font-weight: bold;
  position: relative;
  display: flex;
  line-height: 22px;
  text-shadow: 0 0 1px #ddd;
  text-decoration: none;
  border: 1px solid #e3e3e3;
  color: #2fa4e7;
  transition: 0.5s;
  width: 170px;
  justify-content: space-between;
  padding: 15px;
  cursor: pointer;
}

.nr {
  width: 100%;
  padding: 30px;
  display: flex;
}

.svg-audit {
  font-size: 30px;
  fill: #2fa4e7;
}

.lab-audit {
  cursor: pointer;
  margin-right: -30px;
}
</style>
